package route

import (
	"webhook/controller"

	"github.com/gin-gonic/gin"
)

func InitRoute(eng *gin.Engine) {
	if eng == nil {
		return
	}

	eng.POST("/:from/:key", controller.GitLabWebHook)
	eng.GET("/:from/:key", controller.ApiHook)
}
